<template>
  <el-container class="hcontainer">
    <!-- 头部区域 -->
    <el-header style="text-align: center">
      <span class="ltitle"> 研究生招生信息管理系统 </span>
    </el-header>
    <!-- 主体区域 -->
    <el-container>
      <!-- 左侧边区域 -->
      <el-aside width="200px">
        <!-- 侧边栏菜单区 -->
        <el-menu
          class="aside-menu"
          background-color="#bce2e8"
          text-color="#fff"
          active-text-color="#ffd04b"
          :unique-opened="true"
          :router="true"
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-s-open"></i>
              <span style="color: black">考生档案</span>
            </template>
            <el-menu-item index="/examinee" style="color: black"
              >考生信息</el-menu-item
            >
            <el-menu-item index="/major" style="color: black"
              >专业字典</el-menu-item
            >
          </el-submenu>

          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-tickets"></i>
              <span style="color: black">考生成绩</span>
            </template>
            <el-menu-item index="/fexam" style="color: black"
              >初始成绩</el-menu-item
            >
            <el-menu-item index="/sexam" style="color: black"
              >复试成绩</el-menu-item
            >
          </el-submenu>

          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-s-order"></i>
              <span style="color: black">查询录取</span>
            </template>
            <el-menu-item index="/admission" style="color: black"
              >录取名单</el-menu-item
            >
          </el-submenu>

          <el-submenu index="4">
            <template slot="title">
              <i class="el-icon-s-data"></i>
              <span style="color: black">录取分析</span>
            </template>
            <el-menu-item index="/analyse" style="color: black"
              >分析录取结果</el-menu-item
            >
          </el-submenu>

          <el-submenu index="5">
            <template slot="title">
              <i class="el-icon-warning"></i>
              <span style="color: red">安全退出</span>
            </template>
            <el-menu-item index="/" style="color: black">确认退出</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>

      <!-- 右侧边区域 -->
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: "mainhome",
};
</script>

<style>
.hcontainer {
  height: 1000px;
}
.el-header {
  background-color: #bbe2f1;
  justify-content: space-between;
  align-items: center;
  padding-left: 0;
}

.el-aside {
  background-color: #bce2e8;
}

.aside-menu {
  border-right: 0px;
}
.el-main {
  background-color: whitesmoke;
}

.ltitle {
  font-size: 20px;
  font-weight: 1000;
  line-height: 60px;
}
</style>
